package p.ithorns.framework.core.model;

/**
 * KeyValue
 * TODO
 *
 * @author HtL
 * @date 2024/6/28 17:12
 * @since 1.0.0
 */
public class KeyValue<K, V> {

    private K key;

    private V value;

    private KeyValue(K key, V value) {
        this.key = key;
        this.value = value;
    }

    public K getKey() {
        return key;
    }

    public V getValue() {
        return value;
    }

    public static <K, V> KeyValue<K, V> of(K key, V value) {
        return new KeyValue<>(key, value);
    }

}